export const isAFormMessage = message => message.content_type === 'form'
export const isASubmittedFormMessage = (message = {}) =>
  isAFormMessage(message) && !!message.contentAttributes?.submittedValues

export const MESSAGE_MAX_LENGTH = {
  GENERAL: 10000,
  FACEBOOK: 640,
  TWILIO_SMS: 320,
  TWILIO_WHATSAPP: 1600,
  TWEET: 280
}
